rm -rf ./out/release
mkdir ./out/release

CXXFLAGS="-O3 -DNDEBUG" LDFLAGS="-O3" tools/setup/init.sh CXX=g++-11 -j 3
CXXFLAGS="-O3 -DNDEBUG" LDFLAGS="-O3" make install PREFIX=out/release -j 3

for dep in ./.dependencies/libsimple*
do
	cd $dep
		make install_source PREFIX=../../out/release
	cd -
done

cd ./.dependencies/cpp_tools
make install-includes PREFIX=../../out/release
cd -

make install PREFIX=./out/release

make install_source PREFIX=./out/release
cat Makefile > ./out/release/Makefile

cp res/* out/release/bin/
cd out/release/bin
zip truwo * -r
cd -

cd out/release
zip truwo_source Makefile source include -r
cd -
